import Vue from 'vue'
import Router from 'vue-router'
/* 普通路由引入方式 */
/* import HelloWorld from '@/components/HelloWorld' */
/* 路由懒加载的方式 */
const HelloWorld = ()=>import('@/components/HelloWorld')
import Parent from '@/components/parent'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
},{
path: '/parent',
name: 'Parent',
component: Parent
}
]
})